<%@ page import="lzit.dao.ShanghusDao" %>
<%@ page import="lzit.entity.Shanghus" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>更新商户信息</title>
</head>
<body>
    <%
        request.setCharacterEncoding("utf-8");
        response.setContentType("text/html;charset=utf-8");
        String id = request.getParameter("id");
        String xm = request.getParameter("xm");
        String qy = request.getParameter("qy");
        String lxr = request.getParameter("lxr");
        String dh = request.getParameter("dh");

        if (xm != null && qy != null && dh != null) {
            Shanghus m = new Shanghus();
            m.setSh_name(xm);
            m.setSh_quyu(qy);
            m.setSh_lianxiren(lxr);
            m.setSh_dianhua(dh);
            m.setId(Integer.parseInt(id));
            ShanghusDao dao = new ShanghusDao();
            int row = dao.update(m);
            response.sendRedirect("index.jsp");

        }
    %>

</body>
</html>
